home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Internet / FeedDemon / FeedDemonInstall.exe / {app} / Data / Styles / Outland.fdxsl2 < prev    next >
Encoding:
Extensible Markup Language  |  2009-09-06  |  5.3 KB  |  175 lines

  1. <?xml version="1.0"?>
  2.  
  3. <xsl:stylesheet version="1.0"
  4.     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.     xmlns:fd="http://www.bradsoft.com/feeddemon/xmlns/1.0/">
  6.  
  7. <xsl:output method="html"/>
  8.  
  9. $INCLUDE(commonvar.inc)$
  10.  
  11. <fd:capabilities showExcerpts="false" toggleExcerpts="false" collapsePosts="false" itemGrouping="false" />
  12. <xsl:variable name="feed-type" select="newspaper/channel/@feedType"/>
  13.  
  14. <xsl:template match="newspaper">
  15.     <html xmlns:m="http://www.w3.org/1998/Math/MathML">
  16.     <head>
  17.         <title>Newspaper (<xsl:value-of select="title" disable-output-escaping="yes"/>)</title>
  18.         $INCLUDE(metatrans.inc)$
  19.         <style type="text/css">
  20.             $INCLUDE(commonstyles.css)$
  21.             
  22.             html { 
  23.                 border: 7px solid gray; 
  24.                 font-size: $FONT-SIZE-NEWSPAPER$;
  25.             }
  26.             body { 
  27.                 background-color: white; 
  28.                 color: black; 
  29.                 font-size: smaller;
  30.                 font-family: "$FONT-NAME-NEWSPAPER$", Verdana, Arial, sans-serif;
  31.                 margin: 16px 22px;
  32.             }
  33.             
  34.             a { color: blue; }
  35.             a:hover { color: #6B8ADE; text-decoration: underline; }
  36.             a.notcached {
  37.                 text-decoration: none ! important;
  38.                 border-bottom: 1px dotted red ! important;
  39.             }
  40.     
  41.             /* override headings used by feeds */
  42.             h1,h2,h3,h4,h5,h6 { font-size: 100%; font-weight: bold; font-style: italic;    }
  43.     
  44.             div#newspapertitle { 
  45.                 font-weight: bold;
  46.                 background-color: #9099AE;
  47.                 color: white;
  48.                 width: 100%;
  49.                 padding: 3px 4px;
  50.                 margin-bottom: 12px;
  51.                 clear: both;
  52.             }
  53.  
  54.             div.newsitemtitle { 
  55.                 font-weight: bold;
  56.                 font-size: 105%;
  57.                 margin-bottom: 4px;
  58.                 clear: both;
  59.             }
  60.             div.newsitemtitle a { color: black; }
  61.             img.icon { margin: 0 2px; border: none; }
  62.             div.newsitemtitle img.icon { margin-left: 6px; }
  63.     
  64.             div.newsitemcontent {                 
  65.                 font-family: "Courier New", Courier, monospace;
  66.                 margin-top: 10px;                
  67.             }
  68.             div.newsitemfooter { 
  69.                 clear: both;
  70.                 padding-bottom: 34px;
  71.                   border-bottom: 1px dotted #9099AE;
  72.                 margin-bottom: 7px;
  73.             }
  74.             div.newsitemheader { 
  75.                 font-size: x-small; 
  76.                 border-bottom: 1px solid #9099AE;
  77.                 padding-bottom: 6px;
  78.             }
  79.             .none { color: gray; margin-top: 10px; }
  80.             div.newsitemtitle a { text-decoration: none; }
  81.  
  82.             span.sep {
  83.                 color: #ACA899;
  84.                 margin: 0 5px;
  85.                 font-size: xx-small;
  86.             }
  87.             
  88.             .unread { font-weight: bold; color: $COLOR-UNREAD$; }
  89.             .flagged { color: $COLOR-FLAGGED$; }
  90.             .normal { color: black; }
  91.             
  92.             /* this prevents the IE6 bug described at http://www.dracos.co.uk/code/ie6-css-bug/ */
  93.             .fdnewsitem {
  94.                 line-height: 1.2em;
  95.             }
  96.             #fdfocusedpost {
  97.                 background-color: #F3F3F3;
  98.             }
  99.             div.postactions, div.dateline {
  100.                 display: inline;
  101.                 padding-right: 8px;
  102.                 vertical-align: middle;
  103.             }
  104.             div.dateline {
  105.                 color: gray; 
  106.                 font-style: italic;
  107.             }
  108.             a.share, a.share:hover {
  109.                 text-decoration: none;
  110.             }
  111.             div.postenclosure { font-weight: bold; font-size: smaller; margin-top: 6px; vertical-align: middle; }
  112.             div.postenclosure a { font-weight: normal; }
  113.             img.enclosure { margin-left: -2px; }            
  114.         </style>
  115.     </head>
  116.     <body>
  117.         <xsl:variable name="folderId" select="@folderId"/>
  118.         <!-- no newspaper title for single items -->
  119.         <xsl:if test="title and $newspaper-type!='newsitem'">
  120.             <div id="newspapertitle"><xsl:value-of select="title" disable-output-escaping="yes"/></div>
  121.         </xsl:if>
  122.     
  123.         <xsl:choose>
  124.             <xsl:when test="$item-count=0">
  125.                 <div class="none">$LANG_CONST(S_NoItemsInNewspaperFilter)$</div>
  126.             </xsl:when>
  127.             <xsl:otherwise>
  128.                 <xsl:for-each select="channel/item">
  129.                     <xsl:sort select="@sortIndex" data-type="number"/>
  130.                     <xsl:apply-templates select="."/>
  131.                 </xsl:for-each>        
  132.             </xsl:otherwise>
  133.         </xsl:choose>
  134.     </body>
  135.     </html>    
  136. </xsl:template>
  137.  
  138. <!-- news item template -->
  139. <xsl:template match="item">
  140.     <xsl:variable name="feedId" select="@feedId"/>
  141.     <xsl:variable name="postId" select="@postId"/>
  142.  
  143.     <div class="fdnewsitem" name="{$feedId}:{$postId}">
  144.        <div class="newsitemtitle">
  145.             <xsl:variable name="itemlink" select="link"/>
  146.               <a id="{$postId}_title" title="$LANG_CONST(S_NewsHintGotoPost)$" href="fdaction:?action=gotopostlink&feedid={$feedId}&postid={$postId}&markpostread=1">
  147.               <xsl:value-of select="title" disable-output-escaping="yes"/>
  148.             </a>
  149.             <!-- goto post link in new tab -->
  150.             <a class="icon" href="fdaction:?action=gotopostlink&newtab=1&feedid={$feedId}&postid={$postId}&markpostread=1" title="$LANG_CONST(S_NewsHintOpenInNewTab)$">
  151.                 <img src="$IMAGEDIR$linknew.gif" class="icon" align="absmiddle" />
  152.             </a>
  153.         </div>
  154.         <div class="newsitemheader">
  155.             $INCLUDE(postactions.inc)$
  156.             <div class="dateline"><xsl:value-of select="dateDisplay"/></div>
  157.             <!-- author -->
  158.             <xsl:if test="author"><span class="sep">|</span> <xsl:value-of select="author" disable-output-escaping="yes"/></xsl:if>
  159.             <!-- source -->
  160.             <xsl:if test="source and source/@htmlUrl">
  161.                 <xsl:variable name="srclink" select="source/@htmlUrl"/>
  162.                 <span class="sep">|</span> <a href="{$srclink}"><xsl:value-of select="source"/></a>
  163.             </xsl:if>            
  164.             $INCLUDE(postenclosure.inc)$
  165.         </div>
  166.         <div class="newsitemcontent">
  167.             <xsl:value-of select="description" disable-output-escaping="yes"/>
  168.         </div>
  169.         <xsl:if test="$item-count!=1">
  170.             <div class="newsitemfooter"> </div>
  171.         </xsl:if>
  172.     </div>
  173. </xsl:template>
  174.  
  175. </xsl:stylesheet>